package com.zmn.oms.model.bo.order;

import com.zmn.oms.model.dto.order.zmn.FactoryBatchNewOrderDIO;
import lombok.Data;

import java.util.List;

/**
 * @author sunlife
 * @date:2020/7/30 3:28 下午
 * description:
 */
@Data
public class BatchFactoryUploadBO {
    /**
     * 导入是否完毕
     */
    private boolean endFlag = false;

    /**
     * 导入是否有异常
     */
    private boolean exceptionFlag = false;

    /**
     * 信息
     */
    private String message;

    /**
     * 信息
     */
    private String progressRate;

    public BatchFactoryUploadBO() {
    }

    public BatchFactoryUploadBO(boolean endFlag, boolean exceptionFlag, String message, String progressRate) {
        this.endFlag = endFlag;
        this.exceptionFlag = exceptionFlag;
        this.message = message;
        this.progressRate = progressRate;
    }

    public void updateStatus(boolean endFlag, boolean exceptionFlag, String message, String progressRate) {
        this.endFlag = endFlag;
        this.exceptionFlag = exceptionFlag;
        this.message = message;
        this.progressRate = progressRate;
    }

    public BatchFactoryUploadBO(String progressRate) {
        this.progressRate = progressRate;
    }

}
